#include <iostream>
unsigned long long mode(unsigned long long n) {
    return n % 2147483647;
}
int main()
{
    unsigned long long num;
    std::cin >>num;

    unsigned long long ans = mode(num);
    std::cout <<ans<< std::endl;
}
